home *** CD-ROM | disk | FTP | other *** search
- ' SOUND.SUB -- MSDOS QuickBASIC sound generation subroutines 25 June 86
- ' by David L. Poskie (608) 274-9560
- ' 7118 Raymond Rd. Madison, WI 53719
- ' Please run any suggestions, corrections, additions, or changes by me.
- ' I can be messaged on all the major Madison, WI RBBS's.
-
- '| SOUND.SUB special purpose sound generation subroutines.
- '| Subroutines: SFXDud -- a mile error sound
- '| SFXBleep -- a more strident error sound
- '| SFXZit -- a small input prompting sound.
- '| SFXZot -- a small output signaling sound.
- '| SFXBird -- a warbling sound
-
- ' Relatively mild signal for an error repeated Num times
- SFXDud:
- IF Num = 0 THEN Num = 1
- FOR X = 1 TO Num
- SOUND 99 , X^2 / 4
- FOR Y = 1 TO 99
- NEXT Y
- NEXT X
- RETURN
-
- ' A more strident error sound -- can be repeated Num times w/Dly delay
- SFXBLEEP:
- IF Num = 0 THEN Num = 1
- FOR X = 1 TO Num
- PLAY "mbmso3l64t188c#p8c#p32c#p64eabcdeff#p8"
- FOR Y = 1 TO 9999 / (X * 5)
- NEXT Y
- NEXT X
- RETURN
-
- 'Sound Zee InpuT -- provide just a small input prompting sound
- SFXZit:
- IF Num = 0 THEN Num = 1
- FOR X = 1 TO Num
- SOUND 999 , .05
- NEXT X
- RETURN
-
- 'Sound Zee OutpuT -- provide just a small output signaling sound
- SFXZot:
- IF Num = 0 THEN Num = 1
- FOR X = 1 TO Num
- SOUND 99 , .1
- NEXT X
- RETURN
-
- ' A warble
- SFXBird:
- FOR X = 1 TO Num
- PLAY "MBMNT222L64O5C#G#G#G#G#G#G#"
- FOR Y = 0 TO 799 - X * 21 : NEXT Y
- PLAY "<CDEFGABAGFEDC"
- NEXT X
- RETURN
- ' >>>>> Physical EOF SOUND.SUB 25 June 86